export default class UnauthorizedError extends Error {
	private readonly code: number
	constructor(message: string = '认证过期,请重新登录') {
		super(message)
		this.code = 401
	}

	getCode(): number {
		return this.code
	}
}
